package org.jsets.fastboot.oss.service;

import java.util.List;
import org.jsets.fastboot.oss.model.dto.StorageQuery;
import org.jsets.fastboot.oss.model.entity.Storage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface IStorageConfigService extends IService<Storage>{
	void initialize();
	void insertStorage(Storage entity);
	void deleteStorage(String id);
	void updateStorage(Storage entity);
	void updateStatus(String id, Integer status);
	IStorageEngineService getOrCreateEngineService(String id);
	boolean containEngineService(String id);
	Storage getByName(String name);
	Page<Storage> selectPage(StorageQuery criteria);
	List<Storage> selectList(StorageQuery criteria);
}
